package com.he.prototypemodel.prorotype;

public class WorkExperience implements  Cloneable{
    private String wcompany;
    private double workYear;

    public WorkExperience(String wcompany, double workYear) {
        this.wcompany = wcompany;
        this.workYear = workYear;
    }

    public String getWcompany() {
        return wcompany;
    }

    public void setWcompany(String wcompany) {
        this.wcompany = wcompany;
    }

    public double getWorkYear() {
        return workYear;
    }

    public void setWorkYear(double workYear) {
        this.workYear = workYear;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "WorkExperience{" +
                "wcompany='" + wcompany + '\'' +
                ", workYear=" + workYear +
                '}';
    }
}
